// 客户商品
export const customerGoodsVo = (list: any) => {
  if (!list || list.length === 0) return [];
  const _list: any = [];
  list.forEach((item: any) => {
    _list.push(customerGoodsOne(item));
  });

  return _list;
};
export const customerGoodsOne = (item: any) => {
  item.imgVo = "";
  item.imgsVo = [];
  if (item.imgsList && item.imgsList.length > 0) {
    item.imgVo = item.imgsList[0].img;
    item.imgsVo = item.imgsList.map((item: any) => item.img);
  }

  return item;
};
